﻿@using System.Configuration
@using MVCMongo.Services
@model IEnumerable<DataMongo.Entities.FeedPost>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutProfile.cshtml";
   
}

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span9">
            @foreach (var item in Model.OrderByDescending(x => x.PublishDate))
            {

                <div class="row-fluid">
                    <div class="blog-list-post small">
                        <div class="preview-img span3">
                            <a href="more-blog-post.html"><img src="/Content/FeedImages/@item.ImageURL1" /></a>
                        </div>
                        <div class="post-content span9">
                            <h4 class="post-title">
                                <a href="@Url.RouteUrl("ViewFeed", new { id = item.FeedPostId, title = UtilityService.RemoveSpecialCharacters(item.Title) })" target="_blank">@item.Title</a>
                            </h4>
                            <div class="post-meta">
                                <span class="date">
                                    <i class="icon-calendar"></i> @item.PublishDate.Substring(0, 16)
                                </span>
                                <span class="comments">
                                    <i class="icon-comments"></i> <a href="#">5 comments</a>
                                </span>
                                <span class="tags">
                                    <i class="icon-tag"></i>
                                    <a href="#">ui</a>
                                    <a href="#">flat</a>
                                    <a href="#">clean</a>
                                </span>
                                <span class="author">
                                    <i class="icon-user"></i> <a href="#">eakroko</a>
                                </span>
                            </div>
                            <div class="post-text">
                                <p>@Html.Raw(item.ShortDescription)</p>
                            </div>
                        </div>
                    </div>
                </div>  }


            <div class="span3">
                @Html.Action("FriendList")

            </div>

        </div>
    </div>

</div>
<script type="text/javascript">
    $(document).ready(function () {
        var list = document.querySelectorAll(".jumpTag");
        var list = document.querySelectorAll(".jumpTag");
        $.each(list, function () {
            $(this).remove();
        });
    });
</script>